package y23.Jun;

public class Test14 {
    public static void main(String[] args) {
        int beerNum = 99;
        String word = "bottles";
        String wall = " of beer on the wall";
        while(beerNum > 0){
            if(beerNum == 1) {
                word = "bottle";
            }
            System.out.println(beerNum + " " + word + wall);
            System.out.println(beerNum + " " + word + " of beer");
            System.out.println("Take one down.");
            System.out.println("Pass it around.");
            beerNum--;
            if(beerNum > 1){
                System.out.println(beerNum + " " + word + wall);
            }else{
                System.out.println("No more bottles of beer on the wall");
            }
        }
    }
}
